/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ajz.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ajz.entity.AjzXfDm;
import com.thinkgem.jeesite.modules.ajz.dao.AjzXfDmDao;

/**
 * 店面消防表Service
 * @author whh
 * @version 2017-09-19
 */
@Service
@Transactional(readOnly = true)
public class AjzXfDmService extends CrudService<AjzXfDmDao, AjzXfDm> {
	
	/**
	 * 通过baseinfo获取AjzXfDm
	 * @param baseinfoID
	 * @return
	 */
	public AjzXfDm getAjzXfDmByBaseinfoId(String baseinfoID){
		return dao.getAjzXfDmByBaseinfoId(baseinfoID);
	}
	
	/**
	 * 通过baseinfo获取AjzXfDm,del_flag为0
	 * @param baseinfoID
	 * @return
	 */
	public AjzXfDm getRealAjzXfDmByBaseinfoId(String baseinfoID){
		return dao.getRealAjzXfDmByBaseinfoId(baseinfoID);
	}


	public AjzXfDm get(String id) {
		return super.get(id);
	}
	
	public List<AjzXfDm> findList(AjzXfDm ajzXfDm) {
		return super.findList(ajzXfDm);
	}
	
	public Page<AjzXfDm> findPage(Page<AjzXfDm> page, AjzXfDm ajzXfDm) {
		return super.findPage(page, ajzXfDm);
	}
	
	@Transactional(readOnly = false)
	public void save(AjzXfDm ajzXfDm) {
		super.save(ajzXfDm);
	}
	
	@Transactional(readOnly = false)
	public void delete(AjzXfDm ajzXfDm) {
		super.delete(ajzXfDm);
	}
	
}